@echo off
if "%1" == "" goto Usage
if "%CodePlex3rdParty%" == "" goto NoLogging
goto Logging

:Usage
echo usage: build [target]
echo where: target = one of "Clean", "Build", "Test", "Cruise"
goto End

:NoLogging
%windir%\Microsoft.NET\Framework\v3.5\MSBuild.exe TfsClient.msbuild /p:Configuration=Debug /t:%*
goto End

:Logging
%windir%\Microsoft.NET\Framework\v3.5\MSBuild.exe TfsClient.msbuild /p:Configuration=Debug /logger:Kobush.Build.Logging.XmlLogger,%CodePlex3rdParty%\Kobush.Build.dll;BuildResults.xml /t:%*

:End